package cn.jetpiece.cloud.common.app.modular.message.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 消息配置
 *
 * @author jetpiece
 * @since 2022-11-22
 */
@Data
@TableName("common_message_config")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class MessageConfig implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
	@TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 租户编号
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 消息事件分类
     */
    @TableField(value = "message_event_category")
    private String messageEventCategory;

    /**
     * 通知类型
     */
    @TableField(value = "notify_type")
    private String notifyType;

    /**
     * 通知配置
     */
    @TableField(value = "notify_config")
    private String notifyConfig;

    /**
     * 模板CODE
     */
    @TableField(value = "template_code")
    private String templateCode;

    /**
     * 创建日期
     */
    @TableField(value = "create_time", fill= FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人登录名称
     */
    @TableField(value = "create_by", fill= FieldFill.INSERT)
    private String createBy;

    /**
     * 更新日期
     */
    @TableField(value = "update_time", fill= FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 更新人登录名称
     */
    @TableField(value = "update_by", fill= FieldFill.UPDATE)
    private String updateBy;
}
